/**
 * 别名
 */
export const DATA_TYPE_ALIAS = {
  image: ['img']
}

/**
 * @param {Function} h
 * @returns {Object} options
 * @example see @/views/permission/directive.vue
 */
export function nullDisplay(h, options) {
  return h(
    'span',
    {
      attrs: {
        class: 'not-set'
      }
    },
    (options && options.nullText) || 'NOSET'
  )
}
